import { request } from "@/utils/request"

export const apiAddressList = (data: any = {}) => {
  return request({
    url: '/address/list',
    method: 'POST',
    data
  })
}
// 添加
export const apiAddressAdd = (data: any = {}) => {
  return request({
    url: '/address/add',
    method: 'POST',
    data
  })
}
// 修改
export const apiAddressEdit = (data: any = {}) => {
  return request({
    url: '/address/edit',
    method: 'POST',
    data
  })
}
// 删除
export const apiAddressDel = (data: any = {}) => {
  return request({
    url: '/address/remove',
    method: 'POST',
    data
  })
}
// 详情
export const apiAddressInfo = (data: any = {}) => {
  return request({
    url: '/address/info',
    method: 'POST',
    data
  })
}
// 查询默认地址
export const apiAddressDefault = (data: any = {}) => {
  return request({
    url: '/address/list',
    method: 'POST',
    data
  })
}



// 优惠券-查询 http://localhost:8080/leshi/userCoupon/list
export const userCouponList = (data: any = {}) => {
  return request({
    url: '/userCoupon/list',
    method: 'POST',
    data
  })
}
